
package cn.eshore.bnet.sag.location;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for WebActionType.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="WebActionType">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="MultiPointLocation"/>
 *     &lt;enumeration value="SingleHisRouteLocation"/>
 *     &lt;enumeration value="SetupElectronicFences"/>
 *     &lt;enumeration value="GetAlarmInfo"/>
 *     &lt;enumeration value="GetSingleReport"/>
 *     &lt;enumeration value="GetMultiReport"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "WebActionType")
@XmlEnum
public enum WebActionType {

    @XmlEnumValue("MultiPointLocation")
    MULTI_POINT_LOCATION("MultiPointLocation"),
    @XmlEnumValue("SingleHisRouteLocation")
    SINGLE_HIS_ROUTE_LOCATION("SingleHisRouteLocation"),
    @XmlEnumValue("SetupElectronicFences")
    SETUP_ELECTRONIC_FENCES("SetupElectronicFences"),
    @XmlEnumValue("GetAlarmInfo")
    GET_ALARM_INFO("GetAlarmInfo"),
    @XmlEnumValue("GetSingleReport")
    GET_SINGLE_REPORT("GetSingleReport"),
    @XmlEnumValue("GetMultiReport")
    GET_MULTI_REPORT("GetMultiReport");
    private final String value;

    WebActionType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static WebActionType fromValue(String v) {
        for (WebActionType c: WebActionType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
